package com.site.util;

import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

import com.site.util.constant.Constants;


/**
 * 
 * 封装baselayer.properties文件中的属性
 */
public class PropertiesFactory {
	
	private static ResourceBundle resource;
	
	/**
	 * 获取baselayer.properties文件中的指定属性的值
	 * @param key
	 * @return
	 */
	public static String get(String key){
		return resource.getString(key);
	}
	
	public void init(){
		resource=PropertyResourceBundle.getBundle(Constants.SITE_PROPERTIES);
	}
	
	//项目配制文件路径
	public static String configPath;
	
}
